package com.alennus.blog.domain;

import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by pactera on 2018/5/14.
 */
@Document
@Data
public class Account extends AbstractDocument {

    /**
     * 账号
     */
    @NotNull
    private String account;

    /**
     * 密码
     */
    @NotNull
    private String password;

    /**
     * 性别
     */
    private String sex;

    /**
     * 头像
     */
    private String icon;


    /**
     * 座右铭
     */
    private String motto;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 状态
     */
    private String status;

    /**
     * 背景图
     */
    private String background;

    /**
     * 背景文字描述
     */
    private String backgroundText;

    private String createdDate;

    private String updateDate;

    @Transient
    private List<String> roleIds;
}
